'use strict';
import React, {Component} from 'react';
import {StyleSheet, Text, View} from 'react-native';
import Color from '../../constant/Color';

/** 标题行 */
export class NormalLine extends Component {
    render() {
        return (
            <View
                style={styles.NormalLine}>
                <Text style={styles.NormalLineText}>{this.props.title}</Text>
            </View>
        );
    }
}

//样式定义
const styles = StyleSheet.create({
    NormalLine: {
        height: 40,
        flexDirection: 'row',
        alignItems: 'center',
        justifyContent: 'flex-start',
        paddingTop: 8,
        paddingBottom: 8,
        paddingLeft: 10,
        paddingRight: 4,
    },
    NormalLineText: {
        color: Color.darkGray,
        fontSize: 16,
    },
});

